#include<stdio.h>
//struct Student
//{
//    int id;
//    int age;
 //   char *name;
//    char *gender;
 //   char *address;
//};//自定义结构体类型
typedef struct
{
    int id;
    int age;
    char *name;
    char *gender;
    char *address;
}Stu;
//typedef struct Student Stu;//定义别名
int main()
{
    Stu stu1;
    //自定义的结构体变量
    Stu *ptr=&stu1;
    stu1.id=100;              
    stu1.age=10;               
    stu1.name="tom";             
    stu1.gender="男";             
    stu1.address="软件园";
    Stu stu2;
    stu2.id=100;     
    //访问变量
    printf("%d\n",stu2.id);
    return 0;
}